package cn.schoolwow.quickdao.module.database.ddl.action.service.column;

import cn.schoolwow.quickdao.module.database.ddl.action.flow.column.DropTableColumnFlow;
import cn.schoolwow.quickdao.module.database.ddl.common.flow.DeleteDatabaseEntityCacheFlow;
import cn.schoolwow.quickflow.QuickFlowExecutor;
import cn.schoolwow.quickflow.flow.CompositeBusinessFlow;

public class DropColumnCompositeBusiness implements CompositeBusinessFlow {
    @Override
    public void executeCompositeBusiness(QuickFlowExecutor quickFlowExecutor) {
        quickFlowExecutor.next(new DropTableColumnFlow())
                .next(new DeleteDatabaseEntityCacheFlow());
    }

    @Override
    public String name() {
        return "删除表字段复合流程";
    }
}
